<!DOCTYPE html>
<html>

<!-- Mirrored from /theme/hplus/table_foo_table.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>乡土味士-自媒体后台管理中心 - FooTable</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
<link rel="shortcut icon" href="favicon.ico">
<link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="__PUBLIC__/css/plugins/footable/footable.core.css" rel="stylesheet">
<link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
<link href="__PUBLIC__/css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="__PUBLIC__/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
<link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <button type="button" class="btn btn-w-m btn-success" onClick="window.location.href='__MODULE__/Article/celebrity/'">返回</button>
          <div class="ibox-tools"> </div>
        </div>
        <div class="ibox-content">
          <div class="row form-body form-horizontal m-t">
            <div class="col-md-12">
            <form name="savearc" id="savearc" method="post" action="__MODULE__/Article/celebrity_upd/" enctype="multipart/form-data">
              <div class="form-group">
              <input name="id" type="hidden" value="{$info.id}">
                <label class="col-sm-3 control-label">村庄查找：</label>
                <div class="col-sm-9">
                  <input type="text" name="vkeyword" class="form-control" placeholder="请输入村庄名称" style="display:inline;width:50%;margin-right: 8px;">
                  <button type="button" class="btn btn-w-m btn-primary" onClick="search_v()">搜索</button>
                </div>
                <label class="col-sm-3 control-label" style=" color:#f40;">单选*：</label>
                <div class="col-sm-4 m-l-n" style="margin-left:0px;margin-top: 15px;width: 70%;">
                  <select class="form-control v-control" name="v_id" >
                    <option value="{$info.v_id}">{$vinfo.title}		({$vinfo.a1}-{$vinfo.a2}-{$vinfo.a3}-{$vinfo.a4}-{$vinfo.a5})</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 control-label">书记：</label>
                <div class="col-sm-9">
                  <input type="text" name="ukeyword" class="form-control" placeholder="请输入微信昵称" style="display:inline;width:50%;margin-right: 8px;">
                  <button type="button" class="btn btn-w-m btn-primary" onClick="search_u()">搜索</button>
                </div>
                <label class="col-sm-3 control-label" style=" color:#f40;">单选*：</label>
                <div class="col-sm-4 m-l-n" style="margin-left:0px;margin-top: 15px;width: 70%;">
                  <select class="form-control u-control" name="u_id" >
                    <option value="{$info.u_id}">{$vainfo.nickname}		({$vainfo.www_openid})</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 control-label" style=" color:#f40;">贤达标题*：</label>
                <div class="col-sm-9">
                  <input type="text" name="title" value="{$info.title}" class="form-control" placeholder="请输入文本">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 control-label">贤达头像：</label>
                <div class="col-sm-9">
                <img width="300" height="300" src="__PUBLIC__/Uploads/{$info.img}">
                  <input type="file" name="img" class="form-control">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 control-label" style=" color:#f40;">内容*：</label>
                <div class="summernote">
                  {$info.content}
                </div>
                <textarea name="content" style=" display:none;"></textarea>
              </div>
              <div class="form-group">
                <div class="col-sm-12 col-sm-offset-3">
                  <button class="btn btn-primary" onClick="save()">保存内容</button>
                  <button style="margin-left:8px;" class="btn btn-primary" onClick="clswidth()">清除图片宽</button>
                </div>
              </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script> 
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script> 
<script src="__PUBLIC__/js/plugins/footable/footable.all.min.js"></script> 
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script> 
<script src="__PUBLIC__/js/plugins/summernote/summernote.min.js"></script> 
<script src="__PUBLIC__/js/plugins/summernote/summernote-zh-CN.js"></script> 
<script>
        $(document).ready(function(){
			$(".summernote").summernote({lang:"zh-CN"});
			$(".note-editor").css("width","70%");
			$(".note-editor").css("float","left");
			$(".note-editable").css("height","308px");
		});
		var edit=function(){$("#eg").addClass("no-padding");$(".click2edit").summernote({lang:"zh-CN",focus:true})};var save=function(){$("#eg").removeClass("no-padding");var aHTML=$(".click2edit").code();$(".click2edit").destroy()};
    </script> 
<script>
//搜索人
function search_u(){
    $.ajax({
    type : "POST",
    dataType : "json",
	data:{ukeyword:$("input[name='ukeyword']").val()},
    url: "__MODULE__/Vadmin/search_u/",
    async:false,
    success: function(data){
		if(data=='0'){
			var instr="<option value='0'>没有符合的用户</option>";
			$(".u-control option").remove();//移除所有option
			$(".u-control").append(instr);//添加新的option
			}else{
				var instr="";
				for(var i=0;i<data.length;i++){
					instr+="<option value='"+data[i].id+"'>"+data[i].nickname+"		("+data[i].www_openid+")</option>";
					}//end for
				$(".u-control option").remove();//移除所有option
				$(".u-control").append(instr);//添加新的option
			}
    }
	});//end ajax
}//end fun
//搜索村庄
function search_v(){
    $.ajax({
    type : "POST",
    dataType : "json",
	data:{vkeyword:$("input[name='vkeyword']").val()},
    url: "__MODULE__/Vadmin/search_v/",
    async:false,
    success: function(data){
		if(data=='0'){
			var instr="<option value='0'>没有符合的村庄</option>";
			$(".v-control option").remove();//移除所有option
			$(".v-control").append(instr);//添加新的option
			}else{
				var instr="";
				for(var i=0;i<data.length;i++){
					instr+="<option value='"+data[i].id+"'>"+data[i].title+"		("+data[i].a1+"-"+data[i].a2+"-"+data[i].a3+"-"+data[i].a4+"-"+data[i].a5+")</option>";
					}//end for
				$(".v-control option").remove();//移除所有option
				$(".v-control").append(instr);//添加新的option
			}
    }
	});//end ajax
}//end fun
function save(){
	//添加
	html=$(".note-editable").html();
	$("textarea[name='content']").text(html);
	document.getElementById("savearc").submit();
}//end fun
</script>
</body>

<!-- Mirrored from /theme/hplus/table_foo_table.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->
</html>
